package com.edu.dao.impl;

import com.edu.bean.MyDataSource;
import com.edu.dao.UserDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @Author:何包蛋
 * @Date :2022/10/30 - 10 - 30 - 13:37
 */
@Repository
public class UserDaoImpl implements UserDao {
    @Resource
    private MyDataSource dataSource;

    @Override
    public void selectUser() {
        System.out.println("执行了selectUser 方法");
        System.out.println(dataSource);
    }
}
